package 杂项和预实验;

import javax.swing.*;
import java.awt.*;

public class lookingWindow {
    public static void main(String[] args) {
        JFrame unfinished=new JFrame();
        JPanel panel = new JPanel(new GridLayout(4, 1,20,20));
        JLabel successLab=new JLabel();
        JLabel lab2=new JLabel(" ");
        JButton bt1=new JButton("查看与修改");
        JButton bt2=new JButton("返回");
        unfinished.setSize(300,300);
        Font bigFont = new Font("sanserif",Font.PLAIN,15);
        String a="组卷成功！";
        successLab.setText(a);
        successLab.setFont(bigFont);
        panel.setSize(unfinished.getSize());
        panel.add(lab2);
        panel.add(successLab);
        panel.add(bt1);
        panel.add(bt2);
        unfinished.getContentPane().add(BorderLayout.CENTER,panel);
        unfinished.setLayout(new FlowLayout());//流式布局
        unfinished.setLocationRelativeTo(null);//居中

        unfinished.setTitle("在线考试平台");
        unfinished.setVisible(true);
    }
}
